﻿<Tabs @bind-ActiveKey="@activeKey" OnChange="OnTabChange" Animated>
	  <TabPane Tab="Tab 1" Key="1">
      Content of Tab Pane 1
    </TabPane>
    <TabPane Tab="Tab 2" Key="2">
      Content of Tab Pane 2
    </TabPane>
    <TabPane Tab="Tab 3" Key="3">
      Content of Tab Pane 3
    </TabPane>
</Tabs>

@code{
    string activeKey { get; set; } = "1";

    void OnTabChange(string key)
    {
        Console.WriteLine($"tab change:{key}");
    }
}
